package com.nuit.cxl.aop.bilibili.dao.impl;

import com.nuit.cxl.aop.bilibili.dao.RecommendDao;
import org.springframework.stereotype.Repository;


@Repository
public class RecommendDaoImpl implements RecommendDao {

    @Override
    public String select(int id) {
        System.out.println("查询推荐视频:" + id);

//        if(true){
//            throw new RuntimeException("e");
//        }
//        int i = 1/0;
        return "查询成功";
    }

    @Override
    public int update() {
        System.out.println("更新推荐视频");
        return 0;
    }

    @Override
    public void insert() {
        System.out.println("插入推荐视频");
    }

}
